print("我的名字是%s，我的学号是%s"%("董家萁","0306201106"))
import random

# 初始化袋子
daizi = [[], [], []]
# 初始化球
balls = ['1', '2', '3', '4', '5', '6', '7', '8', '9']
# 随机分配球到袋子中
for ball in balls:
    bag_index = random.randint(0, 2)
    daizi[bag_index].append(ball)

# 打印结果
colors = ['红', '黄', '蓝']
for i, bag in enumerate(daizi):
    print(f"{colors[i]}袋子: {bag}")
